package cn.mrcode.wxsdk.core.dialogue.protocol.msg.in.event;



/**
 接收 关注/取消关注事件
 <xml>
 <ToUserName><![CDATA[toUser]]></ToUserName>
 <FromUserName><![CDATA[FromUser]]></FromUserName>
 <CreateTime>123456789</CreateTime>
 <MsgType><![CDATA[event]]></MsgType>
 <Event><![CDATA[subscribe]]></Event>
 </xml>
 */

import cn.mrcode.wxsdk.core.dialogue.protocol.msg.InMsg;

/**
 * 关注实测数据结果： 比官方文档多出一个 EventKey 标记 <xml>
 * <ToUserName><![CDATA[gh_e21b62f685f4]]></ToUserName>
 * <FromUserName><![CDATA[o5Ljujn78A_S0uk_WvAM_fKFEXm4]]></FromUserName>
 * <CreateTime>1411785252</CreateTime> <MsgType><![CDATA[event]]></MsgType>
 * <Event><![CDATA[subscribe]]></Event> <EventKey><![CDATA[]]></EventKey> </xml>
 * 取消关注实测数据结果：比官方文档多出一个 EventKey 标记 <xml>
 * <ToUserName><![CDATA[gh_e21b62f685f4]]></ToUserName>
 * <FromUserName><![CDATA[o5Ljujn78A_S0uk_WvAM_fKFEXm4]]></FromUserName>
 * <CreateTime>1411785559</CreateTime> <MsgType><![CDATA[event]]></MsgType>
 * <Event><![CDATA[unsubscribe]]></Event> <EventKey><![CDATA[]]></EventKey>
 * </xml>
 */
public class FollowInEvent extends InMsg {
	// 订阅：subscribe
	// 取消订阅：unsubscribe
	private String event;

	public FollowInEvent(String toUserName, String fromUserName,
						 Integer createTime, String msgType) {
		super(toUserName, fromUserName, createTime, msgType);
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}
}
